package cn.com.gw.dao.auth;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.com.gw.entity.auth.User;

public interface UserMapper {
    int deleteByPrimaryKey(Long userid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long userid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    Page<User> findPageByParams(Map<String, Object> params, Pageable pageRequest);

    @Select("SELECT * FROM [NewsBackDB].[dbo].[tblUser]")
    @ResultType(User.class)
	List<User> findAll();
}